﻿<div>
    <Slider TValue="double" DefaultValue="35" Disabled="@_disabled"  />
    <Slider TValue="(double, double)" DefaultValue="(20, 50)" Disabled="@_disabled" />
    Disabled: <Switch Size="small" Checked="@_disabled" OnChange="(e)=>OnSwitch(e)" />
</div>

@code
{

    private bool _disabled;

    private void OnSwitch(bool args)
    {
        _disabled = args;
    }
}
